<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
  <title>登录</title>
  <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
</head>
<body>
<h1>用户登录</h1>
<c:if test="${not empty error}">
  <div class="error">${error}</div>
</c:if>
<form action="login" method="post">
  <input type="text" name="username" placeholder="用户名" required><br>
  <input type="password" name="password" placeholder="密码" required><br>
  <button type="submit">登录</button>
</form>
</body>
</html>